import java.util.Scanner;

public class C_1461 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        char a = 'A';
        char b = 'B';
        char tem = 'C';
        int num = 0;
        if (t==1){
            System.out.println("A");
            return;
        }else if (t==2){
            System.out.println("ABA");
            return;
        }else if (t==3){
            System.out.println("ABACABA");
            return;
        }
        StringBuilder sb = new StringBuilder();
        while(true) {
            if(t==2)
                break;
            if(num%2==0)
                sb.append(a).append(b);
            else{
                sb.append(a).append(tem);
                tem++;
            }
            if (tem==b+t-1){
                t--;
                tem = 'C';
            }
            num++;
        }
        System.out.println(sb.toString()+"ABA");

    }

}
